import { createApp } from 'vue'
import App from './App.vue'
import '@/utils/storage.js'
import router from '@/router'
import ElementPlus from 'element-plus'
import '@/assets/css/global.css'
import 'element-plus/theme-chalk/index.css'
import EntryTitle from '@/views/discover/components/EntryTitle.vue'
import Common from '@/utils/common'
import store from '@/store/index'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import { useIpcRenderer } from "@vueuse/electron";
// window["ipcRenderer"] = useIpcRenderer()


const app = createApp(App)
// app.config.productionTip = false
app.use(Common)
app.use(ElementPlus)
app.use(store)
app.use(router)
app.component('entryTitle', EntryTitle)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app')

